﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class EditUsers : Form
    {
        public EditUsers()
        {
            InitializeComponent();
        }

        private void usersBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.usersBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.seniordesignDataSet);
            usersDataGridView.Refresh();

        }

        private void EditUsers_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'seniordesignDataSet.users' table. You can move, or remove it, as needed.
            this.usersTableAdapter.Fill(this.seniordesignDataSet.users);

        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (this.checkbox.Checked)
            {
                usersDataGridView.Visible = true;
                
            }
            else
            {
                usersDataGridView.Visible = false;
                
            }

            
            
        }
    }
}
